<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateMallsTable extends Migration
{
    //提交
    public function up()
    {
        Schema::create('malls', function (Blueprint $table) {
			$table->increments('id');
			$table->string ('name')->comment('店铺名称|input');
			$table->string('run')->comment('经营范围|input');
			$table->string('introduct',500)->comment('简介|input');
			$table->string('address',500)->comment('地址|input');
			$table->string('phone')->comment('联系电话|input');
			$table->integer('cid');
			$table->string('ewm',1000)->comment('二维码|image');
			$table->string('face',1000)->comment('店铺封面|image');
			$table->string('dianzhao',1000)->comment('店招|image');
			$table->string('link',500)->nullable()->comment('外链地址|input');
			$table->integer ('sort')->default(0)->comment('排序|input');
			$table->integer ('status')->default(0);
			$table->string('position')->comment('店铺定位|input');
			$table->integer ('owner')->comment('所有者');
			$table->timestamps();
        });
    }

    //回滚
    public function down()
    {
        Schema::dropIfExists('malls');
    }
}
